package com.culturesalon.dao;

import java.io.Serializable;
import java.util.List;

import com.culturesalon.dto.Category;
import com.culturesalon.dto.Goods;
import com.culturesalon.dto.Page;

public interface GoodsDAO {

	public Goods get(Integer id);
	public Serializable save(Goods goods);
	public void update(Goods goods);
	public Serializable delete(Serializable id);
	public List<Goods> findAll();
	public List<Goods> findAllSearch(String goodsName);
	public List<Goods> findAll(Page page,Category category);
	public int getCount(Category category);
	public void goodsClick(Serializable id);
	public List<Goods> findRecommend(Serializable number);
	public List<Goods> findHot(Serializable number);
	public List<Goods> findAllByCategoryId(String categoryId);
	public List<Goods> findAllByCategoryId(String categoryId,Integer number);
	public List<Goods> findAllByCategoryAndSub(List<Category> categoryList);
	public List<Goods> findAllByCategoryAndSub(List<Category> categoryList,Integer number);
	
	
}
